﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Calculator.ConsoleCalc.Functions
{
	class DivideFunction: Function
	{

		public override double ExecuteOperation(double first, double second)
		{
			if (first == second)
				throw new DivideByZeroException();

			return first / second;
		}
	}
}
